#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from function import sum

# age = int(input("输入你的年龄：")) #int() float() bool() str()
age = 1
if age > 18:
    print("成年")
elif age < 8:
    print("小孩")
else:
    print("青年")
# 练习
# weight = float(input("请输入体重："))
# height = float(input("请输入身高："))
weight = 52
height = 1.65
BMI = weight / (height * height)
if BMI < 18.5:
    print("您的体重过轻")
elif BMI < 25:
    print("您的体重正常")
elif BMI < 28:
    print("您的体重过重")
elif BMI < 32:
    print("您的体重肥胖")
else:
    # pring("您的体重严重肥胖")
    pass  # 代表什么都不做 占位符
# 循环 for in
sum1 = 0
for x in range(1000):
    sum1 += x
print(sum1)
# while
sum1 = 0
start = 1
while start < 1000:
    sum1 += start
    start += 1
print(sum1)


print(sum(1, 999))
